/*
 * @author: Archy
 * @Date: 2022-03-15 11:58:59
 * @LastEditors: Archy
 * @LastEditTime: 2022-03-18 16:23:54
 * @FilePath: \arkgen\server\src\routes\store.ts
 * @description: 
 */
import express from 'express'
import { join } from 'path'
import Resp from '../class/Resp'
import { compileSFCFile } from '@archybool/ink-cli/lib/compiler/compile-sfc'
import { serialize } from 'serialize-javascript'
const router = express.Router()

router.get('/list', async () => {
  await compileSFCFile(join(__dirname, '../../store/components/button/button.vue'), { retainSourceFile: true })
  const component = require(join(__dirname, '../../store/components/button/button.js'))
  console.log(component);
  const resp = new Resp()
})

export default router
